﻿<html>
<head>
    <script type="text/javascript">
            function check()
            {
                    var arr = new Array();
                    var op = document.getElementsByTagName("option");
                    for (var i = 0; i < op.length; i++)
                    {
                            if (op[i].selected)
                            {
                                    op[i].selected;
                                    arr.push(op[i].value + "---" + op[i].innerText);
                            }
                    }
                    alert(arr);
            }
    </script>
</head>
<body>
    <select name="i_ts_desc" id="i_ts_desc" multiple="true">
        <option value="1">A</option>
        <option value="2">B</option>
        <option value="3">C</option>
        <option value="4">D</option>
    </select>
    <input type="button" onClick="check()" value="click" />
</body>
</html>